.controlPanel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    user-select: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;

    &:hover {
        user-select: auto;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
    }
}

.modeGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.controlGroup {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    &:last-child {
        border-bottom: none;
    }
}

button {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    &:hover {
        background: linear-gradient(145deg, #f8f9fa, #e9ecef);
        border-color: #c5cbd3;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    &:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    &.active {
        background: linear-gradient(145deg, #4caf50, #45a049);
        color: white;
        border-color: #45a049;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
}

.actionButton {
    width: auto;
    min-width: 80px;
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.2);

    &:hover {
        background: linear-gradient(145deg, #0056b3, #004085);
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    }

    &:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 123, 255, 0.1);
    }
}

input[type="color"] {
    width: 30px;
    height: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;

    &:hover {
        border-color: #c5cbd3;
        transform: scale(1.05);
    }
}

input[type="range"] {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;

    &:hover {
        background: #c5cbd3;
    }

    &::-webkit-slider-thumb {
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #4caf50;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        transition: all 0.15s ease;

        &:hover {
            background: #45a049;
            transform: scale(1.2);
        }
    }
}

label {
    font-size: 13px;
    white-space: nowrap;
    font-weight: 500;
    color: #495057;
    min-width: 40px;
}

.positionInfo {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    padding: 6px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    font-family: monospace;
    font-weight: 500;
}